<template>
 <Demo @hello="showHello" msg="你好啊" school="尚硅谷">
  <!-- <template slot="qwa">
  
  </template> -->
  <!-- vue3插槽写成这样 -->
  <template v-slot:qwa>
  
  </template>
 </Demo>

</template>

<script>
import Demo from "./components/Demo.vue";
export default {
  name: "App",
  components: {Demo},
 setup(props) {
  
  function showHello(param) {  
      alert(`你好你触发啦hello 事件参数为${param}`)
  }
  return {showHello}
 }
 
  
};
</script>

<style>
</style>
